package com.define.ssh.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * ClientUpdateInfo entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "client_update_info")
public class ClientUpdateInfo implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String idType;
	private Integer deptUserId;
	private String groupId;
	private String updateFlag;
	private Integer silenceTime;
	private String clientType;
	private String verNum;
	private String updateType;
	private Date updateTime;
	private Integer userId;

	// Constructors

	/** default constructor */
	public ClientUpdateInfo() {
	}

	/** full constructor */
	public ClientUpdateInfo(Integer id, String idType, Integer deptUserId,
			String groupId, String updateFlag, Integer silenceTime,
			String clientType, String verNum, String updateType,
			Date updateTime) {
		this.id = id;
		this.idType = idType;
		this.deptUserId = deptUserId;
		this.groupId = groupId;
		this.updateFlag = updateFlag;
		this.silenceTime = silenceTime;
		this.clientType = clientType;
		this.verNum = verNum;
		this.updateType = updateType;
		this.updateTime = updateTime;
	}

	// Property accessors
	@GeneratedValue(generator = "generator")
	@Id
	@GenericGenerator(name = "generator", strategy = "identity")
	@Column(name = "id", unique = true, nullable = false, precision = 20, scale = 0)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "id_type", unique = false, nullable = false, insertable = true, updatable = true, length = 1)
	public String getIdType() {
		return this.idType;
	}

	public void setIdType(String idType) {
		this.idType = idType;
	}

	@Column(name = "dept_user_id", unique = false, nullable = false, insertable = true, updatable = true)
	public Integer getDeptUserId() {
		return this.deptUserId;
	}

	public void setDeptUserId(Integer deptUserId) {
		this.deptUserId = deptUserId;
	}

	@Column(name = "group_id", unique = false, nullable = false, insertable = true, updatable = true, length = 20)
	public String getGroupId() {
		return this.groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	@Column(name = "update_flag", unique = false, nullable = false, insertable = true, updatable = true, length = 1)
	public String getUpdateFlag() {
		return this.updateFlag;
	}

	public void setUpdateFlag(String updateFlag) {
		this.updateFlag = updateFlag;
	}

	@Column(name = "silence_time", unique = false, nullable = false, insertable = true, updatable = true)
	public Integer getSilenceTime() {
		return this.silenceTime;
	}

	public void setSilenceTime(Integer silenceTime) {
		this.silenceTime = silenceTime;
	}

	@Column(name = "client_type", unique = false, nullable = false, insertable = true, updatable = true, length = 1)
	public String getClientType() {
		return this.clientType;
	}

	public void setClientType(String clientType) {
		this.clientType = clientType;
	}

	@Column(name = "ver_num", unique = false, nullable = false, insertable = true, updatable = true, length = 20)
	public String getVerNum() {
		return this.verNum;
	}

	public void setVerNum(String verNum) {
		this.verNum = verNum;
	}

	@Column(name = "update_type", unique = false, nullable = false, insertable = true, updatable = true, length = 1)
	public String getUpdateType() {
		return this.updateType;
	}

	public void setUpdateType(String updateType) {
		this.updateType = updateType;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", unique = false, nullable = false, insertable = true, updatable = true, length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "user_id")
	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

}